﻿<%@ Page Language="C#" Title="用户注册" AutoEventWireup="true" CodeBehind="Regist.aspx.cs"
    Inherits="Sunimage.Spjg.Web.Regist" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href='<%=ResolveUrl("~/Themes/Default/Admin/SysMgr/Roles.css") %>' type="text/css"
        rel="stylesheet" />
    <link href="Themes/Default/css/common.css" rel="stylesheet" type="text/css" />
    <link href="Themes/Default/css/form.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:Panel ID="PnlNewCommercer" runat="server" CssClass="modalBox" Style="width: 600px;
            margin: 0 auto;">
            <asp:Panel ID="PnlNewCommercerCaption" runat="server" CssClass="caption" Style="margin-bottom: 10px;
                margin-top: 50px; cursor: hand;">
            </asp:Panel>
            <div class="modalContent">
                <div style="text-align: center;">
                    <asp:Label ID="lblMsg" runat="server" ForeColor="Red" Text=""></asp:Label>
                </div>
                <fieldset>
                    <div>
                        <asp:Label ID="lblRegCode" runat="server" AssociatedControlID="tbxUsernameAdd" Text="用户名:"
                            CssClass="add"></asp:Label><asp:TextBox ID="tbxUsernameAdd" runat="server" Width="26em"></asp:TextBox><asp:RequiredFieldValidator
                                ID="RfvRegCodeAdd" runat="server" ErrorMessage="(必填)" Display="Dynamic" ControlToValidate="tbxUsernameAdd"
                                ValidationGroup="NewCommercer"></asp:RequiredFieldValidator>
                    </div>
                    <div>
                        <asp:Label ID="lblName" runat="server" AssociatedControlID="tbxPasswordAdd" Text="密码:"
                            CssClass="add"></asp:Label><asp:TextBox ID="tbxPasswordAdd" TextMode="Password" runat="server"
                                Width="26em"></asp:TextBox>
                    </div>
                    <div>
                        <asp:Label ID="Label3" runat="server" AssociatedControlID="tbxNickname" Text="昵称:"
                            CssClass="add"></asp:Label><asp:TextBox ID="tbxNickname" Text="" runat="server" Width="26em"></asp:TextBox>
                    </div>
                    <div>
                        <asp:Label ID="Label1" runat="server" AssociatedControlID="tbxEmail" Text="Email:"
                            CssClass="add"></asp:Label><asp:TextBox ID="tbxEmail" runat="server" Width="26em"></asp:TextBox>
                    </div>
                </fieldset>
                <div style="white-space: nowrap; text-align: center; margin-top: 2em;">
                    <asp:Button ID="btnSaveNewUser" runat="server" Text="注册" CausesValidation="true"
                        ValidationGroup="NewCommercer" OnClick="btnSaveNewUser_Click" />
                    <a href="login.aspx">登录</a>
                </div>
            </div>
        </asp:Panel>
        <asp:Panel ID="pnlSuccess" runat="server" Visible="false">
            <div style="width: 600px; margin: 0 auto; text-align: center; border: dotted 2px green;
                padding: 10px; margin-top: 100px;">
                <h2>
                    用户注册成功，请<a href="login.aspx">登录</a></h2>
            </div>
        </asp:Panel>
    </div>
    </form>
</body>
</html>
